// JavaScript Document
function setTableOverflow(){
	var th = document.getElementById("mainThead");
	var tb = document.getElementById("mainTbody");
	var bodyh = document.body.clientHeight;
	var bodyw = document.body.clientWidth;
	var SrcollDiv = document.getElementById("srcollTable");
	var con = tb.rows.item(0).cells.length;
	var buttonCov;
	if(!document.getElementById("buttonCov")){
		buttonCov = 0;
		}
	else{buttonCov = document.getElementById("buttonCov").offsetHeight;}
	var conListAlt = document.getElementById("conListAlt").offsetHeight;
	var pageCov;
	if(!document.getElementById("pageCov")){
		pageCov = 0;
		}
	else{
		pageCov = document.getElementById("pageCov").offsetHeight;
		}
		
	var sideCov;
	if(!document.getElementById('sideCov')){
		sideCov = 0;
		}
	else{
		sideCov = document.getElementById('sideCov').offsetWidth;
		}
	SrcollDiv.style.height = bodyh-buttonCov-conListAlt-pageCov+"px";
	SrcollDiv.style.width = bodyw-sideCov+"px";
	if(document.getElementById("listContent")){
		document.getElementById("listContent").style.height= bodyh-buttonCov-conListAlt-23+"px";
		}
	for(i=0;i<th.rows[0].cells.length;i++){
		th.rows[0].cells[i].className = 'thCenter';
		}
	th.rows[0].cells[0].className = 'thLeft';
	for(i=0;i<con;i++){
		th.rows.item(0).cells[i].style.width = tb.rows.item(0).cells[i].clientWidth+"px";
		}
	th.style.width = tb.clientWidth;
	}

function tableList(){
setTimeout(setTableOverflow,1)
}